package com.cuit.qx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lcj
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WarningWind extends Model<WarningWind> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 颜色
     */
    private String color;

    /**
     * 类型 ：1：阵风   2:平均风
     */
    private Integer type;

    /**
     * 风级
     */
    private String threshold;

    /**
     * 时间制
     */
    private Integer hour;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
